Optimal. Leaf size=63 \[ -\frac {2 b c}{3 x}-\frac {1}{3} b c^{3/2} \text {ArcTan}\left (\sqrt {c} x\right )+\frac {1}{3} b c^{3/2} \tanh ^{-1}\left (\sqrt {c} x\right )-\frac {a+b \tanh ^{-1}\left (c x^2\right )}{3 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {6037, 331, 304,
209, 212} \begin {gather*} -\frac {a+b \tanh ^{-1}\left (c x^2\right )}{3 x^3}-\frac {1}{3} b c^{3/2} \text {ArcTan}\left (\sqrt {c} x\right )+\frac {1}{3} b c^{3/2} \tanh ^{-1}\left (\sqrt {c} x\right )-\frac {2 b c}{3 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 331
Rule 6037
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}\left (c x^2\right )}{x^4} \, dx &=-\frac {a+b \tanh ^{-1}\left (c x^2\right )}{3 x^3}+\frac {1}{3} (2 b c) \int \frac {1}{x^2 \left (1-c^2 x^4\right )} \, dx\\ &=-\frac {2 b c}{3 x}-\frac {a+b \tanh ^{-1}\left (c x^2\right )}{3 x^3}+\frac {1}{3} \left (2 b c^3\right ) \int \frac {x^2}{1-c^2 x^4} \, dx\\ &=-\frac {2 b c}{3 x}-\frac {a+b \tanh ^{-1}\left (c x^2\right )}{3 x^3}+\frac {1}{3} \left (b c^2\right ) \int \frac {1}{1-c x^2} \, dx-\frac {1}{3} \left (b c^2\right ) \int \frac {1}{1+c x^2} \, dx\\ &=-\frac {2 b c}{3 x}-\frac {1}{3} b c^{3/2} \tan ^{-1}\left (\sqrt {c} x\right )+\frac {1}{3} b c^{3/2} \tanh ^{-1}\left (\sqrt {c} x\right )-\frac {a+b \tanh ^{-1}\left (c x^2\right )}{3 x^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 91, normalized size = 1.44 \begin {gather*} -\frac {a}{3 x^3}-\frac {2 b c}{3 x}-\frac {1}{3} b c^{3/2} \text {ArcTan}\left (\sqrt {c} x\right )-\frac {b \tanh ^{-1}\left (c x^2\right )}{3 x^3}-\frac {1}{6} b c^{3/2} \log \left (1-\sqrt {c} x\right )+\frac {1}{6} b c^{3/2} \log \left (1+\sqrt {c} x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 51, normalized size = 0.81
method | result | size |
default | \(-\frac {a}{3 x^{3}}-\frac {b \arctanh \left (c \,x^{2}\right )}{3 x^{3}}+\frac {b \,c^{\frac {3}{2}} \arctanh \left (x \sqrt {c}\right )}{3}-\frac {b \,c^{\frac {3}{2}} \arctan \left (x \sqrt {c}\right )}{3}-\frac {2 b c}{3 x}\) | \(51\) |
risch | \(-\frac {b \ln \left (c \,x^{2}+1\right )}{6 x^{3}}-\frac {-c \sqrt {-c}\, b \ln \left (c^{4} \sqrt {-c}-x \,c^{5}\right ) x^{3}+c \sqrt {-c}\, b \ln \left (-c^{4} \sqrt {-c}-x \,c^{5}\right ) x^{3}-c^{\frac {3}{2}} b \ln \left (-c^{\frac {11}{2}}-x \,c^{6}\right ) x^{3}+c^{\frac {3}{2}} b \ln \left (c^{\frac {11}{2}}-x \,c^{6}\right ) x^{3}+4 b c \,x^{2}-b \ln \left (-c \,x^{2}+1\right )+2 a}{6 x^{3}}\) | \(143\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 65, normalized size = 1.03 \begin {gather*} -\frac {1}{6} \, {\left ({\left (2 \, \sqrt {c} \arctan \left (\sqrt {c} x\right ) + \sqrt {c} \log \left (\frac {c x - \sqrt {c}}{c x + \sqrt {c}}\right ) + \frac {4}{x}\right )} c + \frac {2 \, \operatorname {artanh}\left (c x^{2}\right )}{x^{3}}\right )} b - \frac {a}{3 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] Leaf count of result is larger than twice the leaf count of optimal. 95 vs.
\(2 (47) = 94\).
time = 0.35, size = 181, normalized size = 2.87 \begin {gather*} \left [-\frac {2 \, b c^{\frac {3}{2}} x^{3} \arctan \left (\sqrt {c} x\right ) - b c^{\frac {3}{2}} x^{3} \log \left (\frac {c x^{2} + 2 \, \sqrt {c} x + 1}{c x^{2} - 1}\right ) + 4 \, b c x^{2} + b \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 2 \, a}{6 \, x^{3}}, -\frac {2 \, b \sqrt {-c} c x^{3} \arctan \left (\sqrt {-c} x\right ) - b \sqrt {-c} c x^{3} \log \left (\frac {c x^{2} - 2 \, \sqrt {-c} x - 1}{c x^{2} + 1}\right ) + 4 \, b c x^{2} + b \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 2 \, a}{6 \, x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1904 vs.
\(2 (60) = 120\).
time = 6.34, size = 1904, normalized size = 30.22 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 93, normalized size = 1.48 \begin {gather*} -\frac {b c^{3} \arctan \left (x \sqrt {{\left | c \right |}}\right )}{3 \, {\left | c \right |}^{\frac {3}{2}}} + \frac {1}{6} \, b c \sqrt {{\left | c \right |}} \log \left ({\left | x + \frac {1}{\sqrt {{\left | c \right |}}} \right |}\right ) - \frac {b c^{3} \log \left ({\left | x - \frac {1}{\sqrt {{\left | c \right |}}} \right |}\right )}{6 \, {\left | c \right |}^{\frac {3}{2}}} - \frac {b \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right )}{6 \, x^{3}} - \frac {2 \, b c x^{2} + a}{3 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.99, size = 71, normalized size = 1.13 \begin {gather*} \frac {b\,\ln \left (1-c\,x^2\right )}{6\,x^3}-\frac {b\,c^{3/2}\,\mathrm {atan}\left (\sqrt {c}\,x\right )}{3}-\frac {b\,\ln \left (c\,x^2+1\right )}{6\,x^3}-\frac {2\,b\,c\,x^2+a}{3\,x^3}-\frac {b\,c^{3/2}\,\mathrm {atan}\left (\sqrt {c}\,x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________